package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.MuseumExhibit;
import com.shaobufan.museum.pojo.vo.MuseumExhibitVo;

import java.time.LocalDate;
import java.util.List;

/**
* @author 17126
* @description 针对表【museum_exhibit(博物馆展览)】的数据库操作Service
* @createDate 2024-04-07 11:07:06
*/
public interface MuseumExhibitService extends IService<MuseumExhibit> {

    /**
     * 获取展览
     *
     * @param exName 展览名称
     * @return 展览列表
     */
    List<MuseumExhibitVo> searchExhibitByName(String exName);

    /**
     * 通过 id获取展览信息
     * @param exId 展览 id
     * @return MuseumExhibitRequest
     */
    MuseumExhibitVo searchExhibitById(Integer exId);

    /**
     * 添加展览
     *
     * @param exName 名称
     * @param exDetail 详情
     * @param exImage 图片
     * @param exStart 开始时间
     * @param exEnd 结束时间
     * @return Boolean
     */
    Boolean addExhibit(
            String exName,
            String exDetail,
            String exImage,
            LocalDate exStart,
            LocalDate exEnd
    );
}
